<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.ax.pojo.TabTypes"%>
<%@include file="inc/CheckLogin.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=GB2312" http-equiv="Content-Type">
<title>栏目管理</title>
<link type="text/css" rel="stylesheet" href="images/style.Css">
</head>
<body>
<form action="<%=basePath %>downadmin/typesAction!update.do" method="post">
		<%
		  TabTypes tabTypes=(TabTypes)request.getAttribute("type");
		 %>
		 <input type="hidden" name="id" value="<%=tabTypes.getTid() %>" />
<table width="100%" cellspacing="1" cellpadding="3" border="0" bgcolor="#E1E1E1" class="css_table">
	<tbody><tr class="css_menu">
		<td colspan="2"><table width="100%" cellspacing="0" cellpadding="4" border="0" class="css_main_table">
				<tbody><tr>
					<td class="css_main"><a href="typesAction!findTypesMain.do">栏目管理</a></td>
				</tr>
			</tbody></table></td>
	</tr>

		<tr>
			<td class="css_col11">上级栏目：<span style="color:#ccc;letter-spacing: 0px;font-size:13px;" id="hFatherID"></span></td>
			<td class="css_col21">
				<select onblur="hFatherID.style.color='#ccc';" onfocus="hFatherID.style.color='red';" id="oFatherID" type="text" name="TParentID" class="css_select">
				 <%=request.getAttribute("values") %>
				</select>
			</td>
		</tr>
		
		<tr style="display:none;">
			<td class="css_col12">下属ID：<span style="color:#ccc;letter-spacing: 0px;font-size:13px;" id="hChildID"></span></td>
			<td class="css_col22"><input type="text" value="" onblur="hChildID.style.color='#ccc';" onfocus="hChildID.style.color='red';" id="oChildID" name="oChildID" class="css_input">
			</td>
		</tr>
		
		<tr style="display:none;">
			<td class="css_col11">栏目深度：
				<div style="color:#ccc;letter-spacing: 0px;font-size:13px;" id="hDeepPath">禁用此栏目后,将无法再添加内容&nbsp;</div></td>
			<td class="css_col21"><input type="text" value="0" onblur="hDeepPath.style.color='#ccc';" onfocus="hDeepPath.style.color='red';" id="oDeepPath" name="oDeepPath" class="css_input">
			</td>
		</tr>
		
		<tr>
			<td class="css_col12">栏目名称：
				<div style="color:#ccc;letter-spacing: 0px;font-size:13px;" id="hName">支持HTML语法,不要超过250个字符&nbsp;</div></td>
			<td class="css_col22"><input type="text" size="40" value="<%=tabTypes.getTname() %>" onblur="hName.style.color='#ccc';" onfocus="hName.style.color='red';" id="oName" name="tname" class="css_input">
				<input type="submit" value="保存" name="Submit2">
			</td>
		</tr>


		
		<tr style="display:none;">
			<td class="css_col11">栏目存放目录：
				<div style="color:#ccc;letter-spacing: 0px;font-size:13px;" id="hRuleindex">栏目存放目录址,可使用 {installdir} {cid} 标签, {py} 标签将栏目名转换成对应拼音&nbsp;</div></td>
			<td class="css_col21"><input type="text" size="40" value="{installdir}html/{py}/" onblur="hRuleindex.style.color='#ccc';" onfocus="hRuleindex.style.color='red';" id="oRuleindex" name="oRuleindex" class="css_input">
			</td>
		</tr>
		
		<tr style="display:none;">
			<td class="css_col12">栏目分页规则：
				<div style="color:#ccc;letter-spacing: 0px;font-size:13px;" id="hRulechannel">栏目分页列表存放规则,可使用 {cid} {page} 标签,其中 {page} 为必填标签&nbsp;</div></td>
			<td class="css_col22"><input type="text" size="40" value="page_{page}/" onblur="hRulechannel.style.color='#ccc';" onfocus="hRulechannel.style.color='red';" id="oRulechannel" name="oRulechannel" class="css_input">
			</td>
		</tr>
		
		<tr style="display:none;">
			<td class="css_col11">预览页规则：
				<div style="color:#ccc;letter-spacing: 0px;font-size:13px;" id="hRuleview">文章浏览页存放规则,可使用 {cid} {aid} {d} {m} {y} {date} 标签, {aid} 一定要存在&nbsp;</div></td>
			<td class="css_col21"><input type="text" size="40" value="{aid}/" onblur="hRuleview.style.color='#ccc';" onfocus="hRuleview.style.color='red';" id="oRuleview" name="oRuleview" class="css_input">
			</td>
		</tr>
		

		<tr>
			<td class="css_col11">栏目关键字：
				<div style="color:#ccc;letter-spacing: 0px;font-size:13px;" id="hKeywords">多个用,做分隔&nbsp;</div></td>
			<td class="css_col21"><textarea rows="2" cols="50" onblur="hKeywords.style.color='#ccc';" onfocus="hKeywords.style.color='red';" id="oKeywords" type="text" name="tkeyword" class="css_textarea"><%=tabTypes.getTkeyword() %></textarea>
			</td>
		</tr>
		
		<tr>
			<td class="css_col12">栏目描述：
				<div style="color:#ccc;letter-spacing: 0px;font-size:13px;" id="hDescription">栏目简要说明,不过超过250个字符&nbsp;</div></td>
			<td class="css_col22"><textarea rows="5" cols="50" onblur="hDescription.style.color='#ccc';" onfocus="hDescription.style.color='red';" id="oDescription" type="text" name="tdescribe" class="css_textarea"><%=tabTypes.getTdescribe() %></textarea>
			</td>
		</tr>
		
		<tr style="display:none;">
			<td class="css_col11">是否需要更新：<span style="color:#ccc;letter-spacing: 0px;font-size:13px;" id="hNeedcreate"></span></td>
			<td class="css_col21"><input type="text" value="1" onblur="hNeedcreate.style.color='#ccc';" onfocus="hNeedcreate.style.color='red';" id="oNeedcreate" name="oNeedcreate" class="css_input">
			</td>
		</tr>
		<tr class="css_page_list">
			<td colspan="2"><input type="submit" value="保存" name="Submit"></td>
		</tr>
	
</tbody></table>


</form>
</body></html>